package top.healthylife.gateway.platform.eye.dto.zengzhifuwu.EyeReqRiskDetailDto.res;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import top.healthylife.basics.utils.exception.BusinessException;

/**
 * 结果集List
 *
 * @author: YQ_Gao
 * @date: 2020-12-14 23:02:37
 */
@Data
@ApiModel("数据结果处理类")
public class DataListTypeBuilder {

    public static Class<?> build(Integer type) {
        switch (type) {
            case 1:
                return DataListType1.class;
            case 3:
                return DataListType3.class;
            case 5:
                return DataListType5.class;
            case 6:
                return DataListType6.class;
            case 7:
                return DataListType7.class;
            case 8:
                return DataListType8.class;
            case 9:
                return DataListType9.class;
            case 10:
                return DataListType10.class;
            case 11:
                return DataListType11.class;
            case 12:
                return DataListType12.class;
            case 13:
                return DataListType13.class;
            case 14:
                return DataListType14.class;
            case 15:
                return DataListType15.class;
            case 16:
                return DataListType16.class;
            case 17:
                return DataListType17.class;
            case 18:
                return DataListType18.class;
            case 19:
                return DataListType19.class;
            case 20:
                return DataListType20.class;
            case 21:
                return DataListType21.class;
            case 22:
                return DataListType22.class;
            case 23:
                return DataListType23.class;
            case 24:
                return DataListType24.class;
            case 25:
                return DataListType25.class;
            case 26:
                return DataListType26.class;
            case 27:
                return DataListType27.class;
            case 28:
                return DataListType28.class;
            case 29:
                return DataListType29.class;
            case 30:
                return DataListType30.class;
            case 31:
                return DataListType31.class;
            case 32:
                return DataListType32.class;
            case 33:
                return DataListType33.class;
            case 34:
                return DataListType34.class;
            case 35:
                return DataListType35.class;
            case 37:
                return DataListType37.class;
            case 43:
                return DataListType43.class;
            case 44:
                return DataListType44.class;
            default:
                throw new BusinessException("数据结构异常,Type不在期望值之内");
        }
    }

}
